<ul id="authtree" class="tree"></ul>

<script type="text/javascript">

/*
splitAuthContentPanel = function() {
	var authContentPanel = 'authContentPanel'; 
	var authManageCol = 'authManageCol';
	
	if (authContentPanel) {	
		MUI.closePanel(authContentPanel);
	}
	new MUI.Panel({
	 		header: false,
			id: authContentPanel,
			column: 'authContentCol',
	});
		
	new MUI.Column({
		container: authContentPanel,
		id: authManageCol,
		placement: 'main'
	});
 
	new MUI.Panel({
		title: '基本信息',
		id: 'authInfoPanel',
		addClass: 'panelAlt',
		headerToolbox:true,
		headerToolboxURL:'/mochaui/data/auth.toolbar.html',
		contentURL: '/mochaui/data/auth.baseinfo.html',
		column: authManageCol
	});
	
	new MUI.Panel({
		title: '权限管理--角色',
		id: 'authUserManagePanel',
		addClass: 'panelAlt',
		contentURL: '/mochaui/data/auth.role.html',
		column: authManageCol,
		height: 0
	});	
	
	new MUI.Panel({
		title: '权限管理--用户',
		id: 'authRoleManagePanel',
		addClass: 'panelAlt',
		contentURL: '/mochaui/data/auth.user.html',
		column: authManageCol,
		height: 0
	});
	
};
*/	
 	
splitAuthContentPanel = function() {
	var authContentPanel = 'authContentPanel'; 
	
	if (authContentPanel) {	
		MUI.closePanel(authContentPanel);
	}
	
	new MUI.Panel({
		//header: false,
		id: 'authContentPanel',
		title: '基本信息',		
		contentURL: '/mochaui/data/auth.baseinfo.html',
		tabsURL: '/mochaui/data/auth.explorer.tabs.html',
		headerToolbox:true,
		headerToolboxURL:'/mochaui/data/auth.toolbar.html',
		column: 'authContentCol'
	});
			
};

var nodeinfo;	
var onNodeClick = function(bean){
	//alert(bean.id);
	nodeinfo = bean;
	splitAuthContentPanel();
}

var dataURL = '/data/sc.action';
var dataURLParams = {"scid":"authtree_1"};
var event = {"onNodeClick":'onNodeClick'};
//导入该页面片段所需的css与js后创建树结构
new MUI.Require({
		css: [MUI.path.plugins + 'tree/css/style.css'],
		js: [MUI.path.plugins + 'tree/scripts/tree.js'],
		onload: function(){
			loadTree('authtree', dataURL, dataURLParams, event);
		}	
});
	
</script>
